﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations.Schema;
using DapperExtensions.Mapper;
namespace LS.Entitys
{
    /// <summary>
    /// 资讯广告
    /// </summary>
    [Table("cms_news_banner")]
    public class CmsNewsBannerEntity:EntityBaseDateDel
    {
        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 图片地址
        /// </summary>
        public string UrlPath { get; set; }
        /// <summary>
        /// 类型 字典
        /// </summary>
        public int BType { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int? BannerSeq { get; set; }


        /// <summary>
        /// 超连接
        /// </summary>
        public string Bhref { get; set; }

        /// <summary>
        /// 分类名称
        /// </summary>
        public string BTypeName { get; set; }


    }
    public class CmsNewsBannerMapper : ClassMapper<CmsNewsBannerEntity>
    {
        public CmsNewsBannerMapper()
        {
            Table("cms_news_banner");
            Map(m => m.BTypeName).Ignore();
            AutoMap();
        }
    }
}
